const db=uniCloud.database();
const dbCmd = db.command;
module.exports = {
	_before: function () { // 通用预处理器

	},
	
	add(snack_id,recommend_type){
		db.collection("recommendList").add({
			snack_id,
			recommend_type
		})
	},
	
	async get(){
		const a= db.collection("recommendList").getTemp();
		const b=await db.collection(a,"Snacks").get();
		return b
		
	}
}
